package cn.hsa.fqz.task.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName t_sys_file_accessory
 */
@TableName(value ="t_sys_file_accessory")
public class TSysFileAccessoryDO implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 附件类型: 1、线索材料 2、子任务材料 3、医药违规材料
     */
    private Integer type;

    /**
     * 附件唯一标识：CL、TK、MED 分别代表线索、任务、违规材料
     */
    private String accessoryId;

    /**
     * 系统文件存放记录ID
     */
    private String fileNo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 附件类型: 1、线索材料 2、子任务材料 3、医药违规材料
     */
    public Integer getType() {
        return type;
    }

    /**
     * 附件类型: 1、线索材料 2、子任务材料 3、医药违规材料
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 附件唯一标识：CL、TK、MED 分别代表线索、任务、违规材料
     */
    public String getAccessoryId() {
        return accessoryId;
    }

    /**
     * 附件唯一标识：CL、TK、MED 分别代表线索、任务、违规材料
     */
    public void setAccessoryId(String accessoryId) {
        this.accessoryId = accessoryId;
    }

    /**
     * 系统文件存放记录ID
     */
    public String getFileNo() {
        return fileNo;
    }

    /**
     * 系统文件存放记录ID
     */
    public void setFileNo(String fileNo) {
        this.fileNo = fileNo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TSysFileAccessoryDO other = (TSysFileAccessoryDO) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getAccessoryId() == null ? other.getAccessoryId() == null : this.getAccessoryId().equals(other.getAccessoryId()))
            && (this.getFileNo() == null ? other.getFileNo() == null : this.getFileNo().equals(other.getFileNo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getAccessoryId() == null) ? 0 : getAccessoryId().hashCode());
        result = prime * result + ((getFileNo() == null) ? 0 : getFileNo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", type=").append(type);
        sb.append(", accessoryId=").append(accessoryId);
        sb.append(", fileNo=").append(fileNo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}